package ReflectionTest;

import java.io.InputStream;
import java.util.Properties;

public class ClassLoaderTest {
    public static void main(String[] args) {
        Properties properties = new Properties();
        ClassLoader classLoader = ClassLoaderTest.class.getClassLoader();
        InputStream inputStream = classLoader.getResourceAsStream("test.properties");
        try {
            properties.load(inputStream);
            System.out.println(properties.getProperty("key"));
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}
